Azure-Advanced-Networking

M03-Unit 4 Configure an ExpressRoute Gateway

Deploy ExpressRoute gateways

To connect your Azure virtual network and your on-premises network via ExpressRoute, you must create a virtual network gateway first. A virtual network gateway serves two purposes: to exchange IP routes between the networks and to route network traffic.

Estimated time: 60 minutes (includes ~45 minutes deployment waiting time)

Gateway types

When you create a virtual network gateway, you need to specify several settings. One of the required settings, ‘-GatewayType’, specifies whether the gateway is used for ExpressRoute, or VPN traffic. The two gateway types are:

Each virtual network can have only one virtual network gateway per gateway type. For example, you can have one virtual network gateway that uses -GatewayType VPN, and one that uses -GatewayType ExpressRoute.

In this exercise, you will:

Task 1: Create the VNet and gateway subnet

  1. On any Azure Portal page, in Search resources, services and docs, enter virtual network, and then select Virtual networks from the results.

  2. On the Virtual networks page, select +Create.

Important Note:

If the CREATE VIRTUAL NETWORK - TAB menu order is:
“Basics | Security | IP Addressess | Tags | Review + Create”. Use Option 1 instructions.

If the CREATE VIRTUAL NETWORK - TAB menu order is:
“Basics | IP Addressess | Security | Tags | Review + Create”. Scroll down and use Option 2 instructions.

Option 1 instructions

  1. On the Create virtual networks pane, on the Basics tab, use the information in the following table to create the VNet:

    Setting Value
    Virtual Network Name CoreServicesVNet
    Resource Group ContosoResourceGroup
    Location East US
  2. Click Next.

  3. On the Security blade.Click Next.

  4. On the IP addresses blade: In the existing Address space section, select the three dots and click Delete address space

  5. On the IP addresses blade, Click Add an IP address space

  6. On the Add an IP address space blade: Enter the following values

    Setting Value
    Address space type IPv4
    Starting address 10.20.0.0
    Address space size /16
  7. Click Add.

1.Back on the IP addresses blade: In the new address space section. Click Add an subnet

  1. Create a subnet with the following Subnet settings (leave others with their default values):

    Setting Value
    Subnet template Virtual Network Gateway
    Name GatewaySubnet
    Starting address 10.20.0.0
    Subnet size /27 (32 addresses)
  2. Click Add

  3. Click Review and Create. Let validation occur, and click Create again to submit your deployment.

Option 2 instructions

  1. On the Create virtual networks pane, on the Basics tab, use the information in the following table to create the VNet:

    Setting Value
    Virtual Network Name CoreServicesVNet
    Resource Group ContosoResourceGroup
    Location East US
  2. Select Next : IP addresses.

  3. On the IP Addresses tab, in IPv4 address space, enter 10.20.0.0/16, and then select + Add subnet.

  4. In the Add subnet pane, use the information in the following table to create the subnet:

    Setting Value
    Gateway Subnet name GatewaySubnet
    Gateway Subnet address space 10.20.0.0/27
  5. And then select Add.

  6. On the Create virtual network page, select Review + Create.

    Azure portal - add gateway subnet

  7. Confirm that the VNet passes the validation and then select Create.

[!Note]

If you are using a dual stack virtual network and plan to use IPv6-based private peering over ExpressRoute, select Add IP6 address space and input IPv6 address range values.

Task 2: Create the virtual network gateway

  1. On any Azure Portal page, in Search resources, services and docs (G+/), enter virtual network gateway, and then select Virtual network gateways from the results.

  2. On the Virtual network gateways page, select +Create.

  3. On the Create virtual network gateway page, use the information in the following table to create the gateway:

    Setting Value
    Project details  
    Resource Group ContosoResourceGroup
    Instance details  
    Name CoreServicesVnetGateway
    Region East US
    Gateway type ExpressRoute
    SKU Standard
    Virtual network CoreServicesVNet
    Public IP address  
    Public IP address Create new
    Public IP address name CoreServicesVnetGateway-IP
    Public IP address SKU Basic
    Assignment Not configurable
  4. Select Review + Create.

  5. Confirm that the Gateway configuration passes validation and then select Create.

  6. When the deployment is complete, select Go to Resource.

[!Note]

it can take up to 45 minutes to deploy a Gateway.

Congratulations! You have successfully created a Virtual network, a gateway subnet, and an ExpressRoute Gateway.

On completion: Do not delete, it is required in the next LAB